package utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class KeyUtils {

    public static String USER_AES_KEY = ""; //传输用户密码时用来加密的key
    public static String USER_MD5_KEY = ""; //用户密码入库时用来加密的key
    public static String USER_TOKEN_KEY =""; //生成用户登录token的key

    static {
        try {
            Properties properties = CommonUtils.readPropertiesFile("key.properties");
            USER_AES_KEY = properties.getProperty("userAesKey");
            USER_MD5_KEY = properties.getProperty("userMD5Key");
            USER_TOKEN_KEY = properties.getProperty("userTokenKey");
        } catch (IOException e) {
            e.printStackTrace();
        }

    }

}
